package day12;

public class Yichang {
	public static void main(String[] args) {
		int num1 = 3;
		int num2 = 0;
		System.out.println("---start---");
		try {
			
			int []array = new int [2];
			array[2] = 3;
			int result = num1 / num2;
		} catch (ArithmeticException e) {
			System.out.println("catch ArithmeticException");
			e.printStackTrace();
		}
		catch (IndexOutOfBoundsException e) {
			System.out.println("catch IndexOutOfBoundsException");
			e.printStackTrace();
		}
		catch (Exception e) {
			System.out.println("Exception");
			e.printStackTrace();
		}
	}
}
